<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>商品搜索</title>
<link type="text/css" rel="stylesheet" href="css/style.css" />
</head>
<script language="javascript">
function submitForm(keyword,pagerMethod,currentPage){
	document.getElementById("keyword").value=keyword;
	document.getElementById("pagerMethod").value=pagerMethod;
	document.getElementById("currentPage").value=currentPage;
	document.form1.submit();
}

</script>
<#import "/WEB-INF/template/common/lib.ftl" as lib>
<body><h2>Digg55.com</h2>
<form id="form1" name="form1" method="get" action="search.html">
商品<input type="text" id="keyword" name="keyword" value="${keyword}"/> <input type="Submit" name="Submit" value="搜索" /> <a href="category.html">更多分类</a>
<input type="hidden" id="pagerMethod" name="pagerMethod" value="" />
<input type="hidden" id="currentPage" name="currentPage" value="${currentPage}" />
</form>
<br>
	
	共找到${pager.totalRows}个结果,这花费了${useTime}毫秒!<hr>
	<#if hits?? && hits.length()!=0>
	<#if pager.totalPages!=1><@lib.paging pager.totalRows pager.currentPage pager.pageSize 10 keyword/><br></#if>
	<#list pager.startRow..pager.endRow as i> 
		<strong>${hits.doc(i).get("name")}</strong><br>		
		${hits.doc(i).get("description")}<br>
		 详情：${hits.doc(i).get("additional_description")}<br>
		 <span class="s1">原价：￥${hits.doc(i).get("price")}</span><br>
		 现价：<#if hits.doc(i).get("sale_price")="0.0">去看看就知道<#else>￥${hits.doc(i).get("sale_price")}</#if><br><br>
	</#list>
	<#if pager.totalPages!=1><@lib.paging pager.totalRows pager.currentPage pager.pageSize 10 keyword/><br></#if>
	</#if>
  
  powered by www.digg55.com
</body>
</html>
